package com.ag.lzm.dao;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.ag.bean.TbPlanStandard;

public class TbPlanStandardDAO extends com.ag.dao.TbPlanStandardDAO {

	private static final Log log = LogFactory.getLog(TbPlanStandardDAO.class);

	public List<TbPlanStandard> findByPlanLevel(String hql) {
		log.debug("finding TbPlanStandard instance by example");
		log.debug("*********************************"+hql);
		try {
			List<TbPlanStandard> results = (List<TbPlanStandard>) getHibernateTemplate()
					.find(hql);
			log.debug("find by example successful, result size: "
					+ results.size());
			if(results.size() != 0){
				return results;
			}
			return null;
		} catch (RuntimeException re) {
			log.error("find by example failed", re);
			throw re;
		}
	}

}
